package com.youth.configLog4j;

import java.net.URL;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

public class Log4jConfig {
	public static void main(String[] args) {
		URL log4jURL = Log4jConfig.class.getClassLoader().getResource("log4j.properties");
		PropertyConfigurator.configure(log4jURL);
		Logger logger = Logger.getLogger(Log4jConfig.class);
		logger.debug(" i'am debug ... ");
		logger.error(" i'am error ... ");
	}
}